package com.justgame.project.cloud.base.entity;

public enum FileSizeUnit {
    BYTES(1L),
    KILOBYTES(1024L),
    MEGABYTES(1024L * 1024L),
    GIGABYTES(1024L * 1024L * 1024L);

    private final long size;

    FileSizeUnit(long size) {
        this.size = size;
    }

    public long getSize() {
        return size;
    }
}
